<?php
namespace app\model;

class UserLog extends Base
{
    protected $autoWriteTimestamp = true;
    /**
     * 记录系统日志
     */
    public function writeUserLog($data)
    {
        $this->allowField(true)->save($data);
    }
}